package com.ruoyi.glsims.service.impl;

import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.glsims.mapper.ProveMapper;
import com.ruoyi.glsims.domain.Prove;
import com.ruoyi.glsims.service.IProveService;

/**
 * 离校申请Service业务层处理
 *
 * @author airted
 * @date 2023-09-12
 */
@Service
public class ProveServiceImpl implements IProveService
{
    @Autowired
    private ProveMapper proveMapper;

    @Override
    public List<Prove> findProveListFromStudent(Prove prove) {
        List<Prove> proves = proveMapper.selectProveListByStudent(prove);
        return proves;
    }

    /**
     * 查询离校申请
     *
     * @param proveId 离校申请主键
     * @return 离校申请
     */
    @Override
    public Prove selectProveByProveId(Long proveId)
    {
        return proveMapper.selectProveByProveId(proveId);
    }

    /**
     * 查询离校申请列表
     *
     * @param prove 离校申请
     * @return 离校申请
     */
    @Override
    public List<Prove> selectProveList(Prove prove)
    {

        return proveMapper.selectProveList(prove);
    }

    /**
     * 新增离校申请
     *
     * @param prove 离校申请
     * @return 结果
     */
    @Override
    public int insertProve(Prove prove)
    {
        return proveMapper.insertProve(prove);
    }

    /**
     * 修改离校申请
     *
     * @param prove 离校申请
     * @return 结果
     */
    @Override
    public int updateProve(Prove prove)
    {
        return proveMapper.updateProve(prove);
    }

    /**
     * 批量删除离校申请
     *
     * @param proveIds 需要删除的离校申请主键
     * @return 结果
     */
    @Override
    public int deleteProveByProveIds(Long[] proveIds)
    {
        return proveMapper.deleteProveByProveIds(proveIds);
    }

    /**
     * 删除离校申请信息
     *
     * @param proveId 离校申请主键
     * @return 结果
     */
    @Override
    public int deleteProveByProveId(Long proveId)
    {
        return proveMapper.deleteProveByProveId(proveId);
    }
}
